.box {
    width: 94%;
    height: 515px;
    margin: 10px auto 100px;
    /* 隐藏超过父容器的内容 */
    position: relative;
    overflow: hidden;

}

.box ul {
    display: flex;
    overflow-x: auto;
    /* 允许水平滚动 */
    scroll-snap-type: x mandatory;
    /* 使滚动对齐 */
}

.box ul li {
    margin: 0 20px;
    scroll-snap-align: center;
    /* 对齐到中心 */
    min-width: 300px;
    /* 每个 item 的最小宽度 */
}

.box:hover .left {
    display: block;
}

.box:hover .right {
    display: block;
}

.left {
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border: 1px solid #000;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    left: 0%;
    top: 50%;
    z-index: 11111111;
    background: #cccccc90;
    display: none;
}

.right {
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border: 1px solid #000;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    right: 0%;
    top: 50%;
    z-index: 11111111;
    background: #cccccc90;
    display: none;
}